home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Documents / NeXTSTEP-faq / 7_ Storage.txt < prev    next >
Text File  |  1996-04-17  |  6KB  |  154 lines

  1.  
  2. Subject: FAQ: 7 - Storage
  3.  
  4.  
  5.                                   7 STORAGE
  6.  
  7. 7.1 Disktab help needed: ST15230N
  8.  
  9.    disktab ST15230N Seagate, ST15230
  10.  
  11.    This is the /etc/disktab entry for the SEAGATE ST15230N.
  12.  
  13.  
  14.         ST15230N_1024|SEAGATE ST15230N_1024:\
  15.         :ty=fixed_rw_scsi:nc#3992:nt#19:ns#59:ss#1024:rm#5411:\
  16.         :fp#160:bp#0:ng#0:gs#0:ga#0:ao#0:\
  17.         :os=sdmach:z0#32:z1#96:hn=localhost:ro=a:\
  18.         :pa#0:sa#512000:ba#8192:fa#1024:ca#8:da#4096:ra#10:oa=time:\
  19.                 :ia:ta=4.3BSD:\
  20.         :pb#512000:sb#512000:bb#8192:fb#1024:cb#8:db#4096:rb#10:ob=time:\
  21.                 :ib:tb=4.3BSD:\
  22.         :pc#1024000:sc#716800:bc#8192:fc#1024:cc#8:dc#4096:rc#10:oc=time:\
  23.                 :ic:tc=4.3BSD: \
  24.         :pd#1740800:sd#1536000:bd#8192:fd#1024:cd#8:dd#4096:rd#10:od=time:\
  25.                 :id:td=4.3BSD: \
  26.         :pe#3276800:se#1150000:be#8192:fe#1024:ce#8:de#4096:re#10:oe=time:\
  27.                 :ie:te=4.3BSD:
  28.  
  29.  
  30. 7.2 Formatting DEC DSP3105 with 1024-byte blocks.
  31.  
  32.    DEC, DSP3105 DPS3105, 1024 block size disktab
  33.  
  34.    A DEC DSP3160S was reformatted with 1024-byte blocks using the
  35.    following entry in /etc/disktab (two partitions)
  36.  
  37.  
  38.         # DEC DSP3160S
  39.         DSP3160S|DEC DSP3160S|DEC DSP3160S w/1024 b/sec as 2 partition:\
  40.         :ty=fixed_rw_scsi:nc#1302:nt#16:ns#75:ss#1024:rm#5403:\
  41.         :fp#160:bp#0:ng#0:gs#0:ga#0:ao#0:\
  42.         :os=sdmach:z0#32:z1#96:r0=a:\
  43.         :pa#0:sa#744000:ba#8192:fa#1024:ca#7:da#4096:ra#10:oa=time:\
  44.         :ia:ta=4.3BSD:\
  45.         :pb#744000:sb#818400:bb#8192:fb#1024:cb#7:db#4096:rb#10:ob=time:\
  46.         :ib:tb=4.3BSD:
  47.  
  48.  
  49. 7.3 My formatted disk has much less space then advertised!
  50.  
  51.    filesystem, overhead disk space space, disk filesystem, space
  52.  
  53.    Let's assume you bought a disk drive advertised with 400 MB
  54.    unformatted capacity. Vendors are not consistent with the MB
  55.    definition. You may have much less space less than you think you have.
  56.    Which of the following did you buy?
  57.  
  58.  
  59.         400 * 1000 * 1000 = 400,000,000 bytes
  60.         400 * 1024 * 1000 = 409,600,000 bytes
  61.         400 * 1024 * 1024 = 419,430,400 bytes
  62.  
  63.  
  64.    The disk must be formatted. This is often done by the vendor, but
  65.    occasionally by the user. Formatting maps the disk into sectors. Space
  66.    is reserved for the disk geometry and bad sectors. Formatting can take
  67.    10-20% of the capacity depending on the sector size. Common sector
  68.    sizes are 512 and 1024. Generally, bigger sectors mean less waste.
  69.  
  70.    Once formatted, the UNIX file system must be created. On the NeXT,
  71.    this is one of the steps performed by the BuildDisk application. It
  72.    invokes the mkfs command to make a file system. This reserves space
  73.    for the UNIX file system (e.g., superblocks, inode tables). This
  74.    overhead can take another 2-3% of the available disk space.
  75.  
  76.    If you issue the df command, you may be surprised to see another 10
  77.    the available disk space has disappeared. The df command shows the
  78.    total, used, and available disk space. The df units are in kbytes
  79.    (1024 bytes). The sum of the used and available numbers will generally
  80.    be about 10 allow the UNIX file system to be efficient in its storage
  81.    allocation. If your disk fills up, only the superuser can store files
  82.    in the remaining 10%.
  83.  
  84.    To complete the picture, here's a snapshot of what may occur:
  85.  
  86.  
  87.          Capacity       Lost/Used/Reserved      Reason
  88.         (in bytes)      (in bytes)
  89.         419,430,000     19,430,000              Marketing hype (~5\%)
  90.         400,000,000     60,000,000              Formatting (~15\%)
  91.         340,000,000      6,800,000              UNIX file system (~2\%)
  92.         333,200,000     33,320,000              Efficiency & superuser (~10\%)
  93.         299,880,000
  94.  
  95.  
  96.    For more information, refer to the df and mkfs man pages.
  97.  
  98. 7.4 Initialing Opticals for NeXT
  99.  
  100.    OD, NeXT optical disk, OD OD, initializing
  101.  
  102.    Do the following:
  103.  
  104.  
  105.         /etc/mkfs /dev/rsd1a 288339 1803 2 8192 1024 12 10 60 4096 t
  106.  
  107.  
  108. 7.5 How to use a streamer ?
  109.  
  110.    streamer
  111.  
  112.    Using Configure.app add the SCSI streamer support driver in the
  113.    "Others" config.
  114.  
  115. 7.6 How to recover from an partially formatted disk?
  116.  
  117.    recover, disk
  118.  
  119.    Often people (mostly on Intel) complain about a formatted disk
  120.    (sometimes partially) due to an installation process error of some
  121.    other OS. There is a chance to recover most of the data. The following
  122.    assumes you are on Intel, other hardware user have to handle things
  123.    much less complicated, but the way is similar:
  124.  
  125.      * Prepare a new hard drive for booting
  126.      * Don't try to repair the broken drive!
  127.      * On Intel run fdisk to repartition the drive as it was before. If
  128.        you are not able to do this, you are lost. Delete all evtl. new
  129.        created partitions. By repartitioning, you won't loose data on the
  130.        drive.
  131.      * Run disk on the broken drive e.g. type disk -rsd1h.
  132.      * Now scan the disk for superblocks by entereing the scan command at
  133.        the interactive disk command prompt.
  134.      * If your disk was partially formatted, use a higher superblock
  135.        number to supply fsck with an new superblock. E.g. if a superblock
  136.        was found at 3145 use fsck -b3145 -y /dev/sd1a (assuming the first
  137.        partition is the broken one).
  138.      * After this run, it is most important to reboot without syncing the
  139.        drives! E.g. just turn off the computer without shutting down, or
  140.        use the reboot -n command.
  141.      * After rebooting the run fsck again, if it isn't done by the system
  142.        itself.
  143.      * You should be able to access the drive again now. Recovered files
  144.        are placed in the /lost+found directory.
  145.  
  146.  
  147.      _________________________________________________________________
  148.  
  149.      * (weiter mit 8 Printing)
  150.  
  151.  
  152.      _________________________________________________________________
  153.  
  154.    This document was converted from LaTeX using Karl Ewald's latex2html.